package com.soup.domain;

public class Book {
    private String name;
    private String author;
    private String publish;
    private int have;
    private int hot;

    public Book(String name, String author, String publish, int have, int hot) {
        this.name = name;
        this.author = author;
        this.publish = publish;
        this.have = have;
        this.hot = hot;
    }

    public Book() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPublish() {
        return publish;
    }

    public void setPublish(String publish) {
        this.publish = publish;
    }

    public int getHave() {
        return have;
    }

    public void setHave(int have) {
        this.have = have;
    }

    public int getHot() {
        return hot;
    }

    public void setHot(int hot) {
        this.hot = hot;
    }

    @Override
    public String toString() {
        return "Book{" +
                "name='" + name + '\'' +
                ", author='" + author + '\'' +
                ", publish='" + publish + '\'' +
                ", have=" + have +
                ", hot=" + hot +
                '}';
    }
}
